package com.znf4.user.order.server.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.znf4.user.order.entity.UserOrder;
import com.znf4.user.order.mapper.UserOrderMapper;
import com.znf4.user.order.server.UserOrderServer;

@Service
public class UserOrderServerImpl implements UserOrderServer {
	
	@Autowired
	private UserOrderMapper userOrderMapper ;

	
	
	public void addUserOrder(UserOrder userOrder) {
		userOrderMapper.insert(userOrder);
		
	}

	public void updateUserOrder(UserOrder userOrder) {
		userOrderMapper.update(userOrder);
		
	}

	public void delOneUserOrder(UserOrder userOrder) {
		userOrderMapper.deleteOne(userOrder);
		
	}

	public void delAllUserOrder(List<UserOrder> list) {
		userOrderMapper.deleteAll(list);
		
	}

	public UserOrder queryOne(UserOrder userOrder) {
		return userOrderMapper.queryOne(userOrder);
	}

	public List<UserOrder> queryAll(UserOrder userOrder) {
		return userOrderMapper.queryAll(userOrder);
	}

	
	
	

	
	
	
	
	
	
	
	
	

}
